<div class="blog-post">
  <h2 class="blog-post-title"><%= link_to blog.title, blog %></h2>
  <p class="blog-post-meta">Published <%= distance_of_time_in_words(blog.created_at, Time.now) + " ago | by " + blog.user.name %> </p>

  <%= render partial: "blogs/admin_actions", locals: {blog: blog } %>

  <div>
    <%= image_tag blog.main_image.to_s, width: "100%" %>
  </div>

  <p><%= markdown blog.body %></p>

  <hr>

</div>